import { ref, defineComponent } from "vue";
export default defineComponent(
  (props, { attrs }) => {
    console.log(props, "props", attrs, "attrs");
    const count = ref(0);
    const icom = () => {
      count.value++;
      console.log(count.value, attrs.data, "tai");
    };
    return () => (
      <div>
        <div
          onClick={() => {
            icom();
          }}
          className="m-1"
        >
          {count.value}
          {attrs.data}
        </div>
      </div>
    );
  }
  // {
  //   props: ["data"],
  // }
);
